#include <time.h>
#include <math.h>
#include <stdio.h>

int main(){
	clock_t temps_initial;
	clock_t temps_final;
	float i=1.0;
	float result;

	float temps_cpu;
	
	temps_initial = clock();

	for (;i<=10000000;i++){
		result += sqrt(i);
		//printf("%f\n", result);
	}
	temps_final = clock();
	temps_cpu = (temps_final - temps_initial) * 1e-6;
	printf("temps cpu = %f\n", temps_cpu);
	return 0;
}
